package logic.items;

import logic.nodes.nodeSettings.upgrades.UpgradableSettings;

public class ItemProperties extends UpgradableSettings implements Buyable {
	
	private final String NAME = "name";
	private final String DESCRIPTION = "description";
	private final String ICON_PATH = "icon_path";
	private final String BUTTON = "button";
	
	private ItemType type;
	
	public ItemProperties(int costs, String modelPath, String filePath, ItemType type) {
		super(costs, modelPath, filePath);
		this.type = type;
	}
	
	public ItemProperties(UpgradableSettings settings, ItemType type) {
		super(settings);
		this.type = type;
	}
	
	public ItemType getType() { return type; }
	
	@Override
	public String getName() { return getValueOf(NAME); }
	
	@Override
	public String getDescription() { return getValueOf(DESCRIPTION); }
	
	public String getIconPath() { return getValueOf(ICON_PATH); }
	
	public boolean isButton() { return Boolean.valueOf(getValueOf(BUTTON)).booleanValue(); }
}